package com.ylg.mybatis.core;

/**
 * @since 1.0
 * @author 杨凌广
 * @version 1.0
 *
 * 封装sql mapper映射文件的sql标签属性
 */
public class MappedStatement {

    private String sql;
    private String resultType;

    /**
     * sql语句标签类型
     */
    private String sqlType;

    public MappedStatement() {
    }

    public MappedStatement(String sql, String resultType) {
        this.sql = sql;
        this.resultType = resultType;
    }

    public MappedStatement(String sql, String resultType, String sqlType) {
        this.sql = sql;
        this.resultType = resultType;
        this.sqlType = sqlType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }
}
